package com.ruoyi.config;

import com.ruoyi.good.persistent.dao.IGoodSkuDao;
import com.ruoyi.task.persistent.dao.ITaskDao;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * TODO
 *
 * @Description
 * @Author wkm
 * @Date 2024/12/28
 **/
@Configuration
public class AdminMyBatisConfig {
    @Bean(name = "adminMybatisConfig")
    public ITaskDao taskDao(SqlSessionFactory sqlSessionFactory){
        return sqlSessionFactory.openSession().getMapper(ITaskDao.class);
        }
    @Bean(name = "adminMybatisConfig1")
    public IGoodSkuDao goodSkuDao(SqlSessionFactory sqlSessionFactory){
        return sqlSessionFactory.openSession().getMapper(IGoodSkuDao.class);
    }

}
